<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta property="qc:admins" content="16651356566244176375"/>
    <title>{$title}</title>
    <link href="__PUBLIC__/Css/base.css" rel="stylesheet" type="text/css"/>
    <load href="__PUBLIC__/Js/jquery-1.8.0.js"/>
    <script type="text/javascript" src="__PUBLIC__/Js/left_right_scroll.js"></script>
    <load href="__PUBLIC__/Js/common.js"/>
    <script language="javascript">
        var _ROOT_ = '__ROOT__', _URL_ = '__URL__', _ACTION_ = '__ACTION__', _APP_ = '__APP__', _SELF_ = '__SELF__', _PUBLIC_ = '__PUBLIC__';
		function focusSearch(){
			var content = $('#search').val();
			if( content == '搜宝贝、搜专辑' ){
				 $('#search').val("");
			}
		}
		function blurSearch(){
			var content = $('#search').val();
			if( content == "" ){
				 $('#search').val("搜宝贝、搜专辑");
			}
		}
		function search(){
			var val = $('#search').val();
			//搜索查询
			window.href = "/index.php/search?val=".val;
		}
    </script>
</head>

<body>
<div id="header">
    <if condition="$UserInfo['user_code']">
        <div class="login_wrap middle">
            <div class="attention">关注我们</div>
            <div class="api_show">
                <a href="" title="" class="c6"><img src="{$UserInfo['user_logo_add']}" width="26" height="26"
                                                    style="vertical-align:middle"/> {$UserInfo['user_nickname']}</a>
                <a href="__APP__/Public/logout" title="退出登录" style="color: #EB1176">退出</a>
            </div>
        </div>
        <else/>
        <div class="api_wrap middle">
            <div class="attention">关注我们</div>
            <div class="api_show">
                <a class="login_bg weibo_login" href="__APP__/Oauth/sinaLogin" title="新浪微博登录">新浪微博登录</a>
                <a class="login_bg qq_login" href="__APP__/Oauth/qqLogin" title="QQ登录">QQ登录</a>
                <!--<a class="login_bg tb_login" href="" title="淘宝登录">淘宝登录</a>-->
            </div>
        </div>
    </if>
    <div class="header_box middle">
        <h1 id="logo"><img src="__PUBLIC__/Images/logo.png" alt="24淘" title="24淘"/></h1>

        <div class="love-msg">
            <!-- 登陆后显示 -->
            <if condition="$UserInfo['user_code']">
                <div class="floatleft borderbox">
                    <i class="u-t-l header-bg"></i>
                    <i class="u-l"></i>
                    <i class="u-b-l header-bg"></i>
                </div>
                <div class="user-box floatleft">
                    <a href="" class="img"><img alt="" src="{$UserInfo['user_logo_add']}"></a>
                    <a class="name c3" href="">{$UserInfo['user_nickname']}</a>
                </div>
                <div class="floatleft borderbox">
                    <i class="u-t-r header-bg"></i>
                    <i class="u-r"></i>
                    <i class="u-b-r header-bg"></i>
                </div>
                <ul class="l-m-box floatleft">
                    <li class="l-m-user"><a target="_blank" href="__APP__/Center/index"><span class="l-m-icon i-reg header-bg">go</span>个人中心</a>
                    </li>
                    <li class="l-m-user none-border"><a target="_blank" href=""><span class="l-m-icon i-gui header-bg">go</span>我的衣柜</a>
                    </li>
                </ul>
                <else/>
                <ul class="l-m-box floatleft">
                    <li class="l-m-user"><a target="_blank" href="__APP__/Public/register"><span
                            class="l-m-icon i-reg header-bg">go</span>注册</a></li>
                    <li class="l-m-user none-border"><a target="_blank" href="__APP__/Public/login"><span
                            class="l-m-icon header-bg">go</span>登录</a></li>
                </ul>
            </if>
        </div>
    </div>
    <!-- 导航 -->
    <div id="navigation" class="header-bg">
        <div class="nav-box">
            <ul class="floatleft">
                <li class=""><a class="nav-title nav-first header-bg" href="__APP__"><span>首页</span><i></i></a></li>
                <!--<li class=""><a class="nav-title header-bg" href=""><span>淘范儿</span><i></i></a></li>
                <li class=""><a class="nav-title header-bg" href=""><span>人气聚集</span><i></i></a></li>
                <li class="new"><a class="nav-title header-bg" href=""><span>新品尝鲜</span><i></i><em></em></a></li>
                <li class=""><a class="nav-title header-bg" href=""><span>风尚指南</span><i></i></a></li>-->
                <li class=""><a class="nav-title header-bg" href="__APP__/Recommon"><span>我要推荐</span><i></i></a></li>
            </ul>
            <div class="floatright nav-search">
                <form method="post" action="__APP__/Search/">
                    <div class="n-s-input">
                        <input type="text" id="search" name="searchq" value="搜宝贝、搜专辑" onfocus="focusSearch();" onblur="blurSearch()">
                    </div>
                    <button class="n-s-btn header-bg" type="submit">搜索</button>
                </form>
            </div>
        </div>
    </div>
</div>